import https from "./request";
// import { LoginData } from "@/type/login"
const other = {
    // 登录
    login(data: any) {
        return https({ url: "/upms/login", method: "POST", data })
    },
    // 获取验证码
    getLoginCode(data: any) {
        return https({ url: "/upms/getLoginCode", method: "POST", data })
    },
    // 获取公钥
    getLoginPubKey(data: any) {
        return https({ url: "/upms/getLoginPubKey", method: "POST", data })
    },
    // 加密
    getUserRsaKey(data: any) {
        return https({ url: "/upms/getUserRsaKey", method: "POST", data })

    },
    // 获取菜单
    getMenu(data: any) {
        return https({ url: "/upms/sys/menu/getMenuListByUserId", method: "POST", data })
    },
    // 获取按钮显示列表
    getBtnList(data: any) {
        return https({ url: "/upms/sys/menu/getButtonPathByUserId", method: "POST", data })
    },
    // 退出登录
    logout(data: any) {
        return https({ url: "/upms/logout", method: "POST", data })
    }
}

export default other

